{% extends "moko_base.html" %}
{% block head %}
  <script type="text/javascript">
  //<![CDATA[
  //]]>
  </script>
{% endblock %}
{% block body %}
	<h1>MOKO Top Girl</h1>
	{% if pages %}
	<div class="pager clearfix">Page:
		<ul>
		{% for p in pages %}
		{% ifequal p page %}
		<li class="cpage">{{p}}</li>
		{% else %}
		<li><a href="{{request.path}}?page={{p}}">{{p}}</a></li>
		{% endifequal %}
		{% endfor %}
		</ul>
	</div>
	{% endif %}	
	<div id="avatar-list">
		<ol class="list">
		{% for model in models %}
			<li>
				<h2>{{model.avatar}}</h2>
				<h3><a href="/moko/model/{{ model.username|stringformat:"s"|urlencode }}{% if is_admin %}?action=update{% endif %}">{{ model.name }}</a></h3>
				<div><a href="{{model.homepage}}">[MOKO Photo Link]</a></div>
			</li>
		{% endfor %}
		</ol>
	</div>
	{% if pages %}
	<div class="pager clearfix">Page:
		<ul>
		{% for p in pages %}
		{% ifequal p page %}
		<li class="cpage">{{p}}</li>
		{% else %}
		<li><a href="{{request.path}}?page={{p}}">{{p}}</a></li>
		{% endifequal %}
		{% endfor %}
		</ul>
	</div>
	{% endif %}	
{% endblock %}
{% block footer %}
{% endblock %}